package com.googlecode.jtoy.jee.ws.server;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

/**
 * java6 WebService 类
 * 
 * @author shangxj
 * @date Jun 29, 2011 11:31:01 PM
 */
@WebService(targetNamespace = "http://jtoy.googlecode.com/jee/ws/client")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class Hello {

	@WebMethod
	@WebResult(name = "helloSomeone")
	public String sayHello(@WebParam(name = "name") String someone) {

		return "Hello," + someone + ".";
	}

	@WebMethod
	@WebResult(name = "howareyouSomeone")
	public String howareyou(@WebParam(name = "name") String someone) {

		return "How are you," + someone + "?";
	}

}
